package com.ctshk.rpc.order.goods.req;

import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单商品表
 * </p>
 *
 * @author 姜斌文
 * @since 2021-04-19
 */
@Data
@ApiModel(value="OrderCommodity对象", description="订单商品表")
public class OrderCommodityReq extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品成本表id")
    private Long commodityCostId;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "商品id")
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品图片url")
    private String commodityPictureUrl;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal commodityPrice;

    @ApiModelProperty(value = "商品编码")
    private String commodityNumber;

    @ApiModelProperty(value = "成本属性表id")
    private Long commodityCostAttributeId;

    @ApiModelProperty(value = "(规格)成本属性表组合名称:组合：规格名称1+属性值1+规格名称2+属性值2")
    private String commodityCostAttributeName;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "商品总价")
    private BigDecimal commodityTotalPrice;

    @ApiModelProperty(value = "物流公司id")
    private Long logisticsCompanyId;

    @ApiModelProperty(value = "物流公司名称")
    private String logisticsCompanyName;

    @ApiModelProperty(value = "物流单号")
    private String logisticsOrderNo;

    @ApiModelProperty(value = "物流公司电话")
    private String logisticsCompanyPhone;

    @ApiModelProperty(value = "商品来源：1：商城商品; 2：当地玩乐")
    private Integer commoditySource;

    @ApiModelProperty(value = "有效时间（商品有效期）")
    private LocalDateTime effectiveTime;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;
}
